#ifndef HOTKEYEDIT_H
#define HOTKEYEDIT_H

#include "sitckcontrol/stickcontrol.h"
#include "touchbutton.h"
#include <QLineEdit>
#include <QPushButton>

class HotKeyEdit : public QLineEdit
{
    Q_OBJECT
public:
    HotKeyEdit();
    void setKey(FUNCTION_KEY nFuncKey, STICK_KEY nHotKey);
    FUNCTION_KEY getFuncKey();
    STICK_KEY getHotKey();

    // QObject interface
private:
    FUNCTION_KEY m_nFuncKey;
    STICK_KEY m_nHotKey;
    TouchButton * m_pClearBtn;
    // QWidget interface
protected:
    void resizeEvent(QResizeEvent *event);
};

#endif // HOTKEYEDIT_H
